var i;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var Item_PaiZi_UIBindings = require("AA_Item_PaiZi_UIBindings");
var ResKeeper = require("AA_ResKeeper");
var _decorator = cc._decorator;
var _ccclass = _decorator.ccclass;
var _property = _decorator.property;

var _def_Item_PaiZi = function (e) {
  function _creator() {
    var t = null !== e && e.apply(this, arguments) || this;
    t.auto_ui = null;
    return t;
  }
  __extends(_creator, e);
  _creator.prototype.StartSet = function (e, t) {
    this.auto_ui.node_xiao.active = true;
    this.auto_ui.node_da.active = false;
    this.auto_ui.node_xiao.children.forEach(function (t, o) {
      t.active = o == e;
    });
    if (1009 == t) {
      this.node.setPosition(68, -68);
    } else {
      this.size || (this.size = cc.v2(this.node.parent.parent.width, this.node.parent.parent.height));
      this.node.x = this.size.x / 2 - 25;
      this.node.y = this.size.y / 2 * -1 + 25;
    }
  };
  __decorate([_property(Item_PaiZi_UIBindings.default)], _creator.prototype, "auto_ui", undefined);
  return __decorate([_ccclass], _creator);
}(ResKeeper.default);
exports.default = _def_Item_PaiZi;